package com.fgba.express.comm.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

/**
 * 菜单类型枚举类
 *
 * @author fgba
 */
@AllArgsConstructor
@NoArgsConstructor
public enum NoticeType implements IEnum<Integer> {
    /**
     *
    */
    PERSONAL(1,"个人通知"),

    SYSTEM(2,"系统通知");

    @EnumValue
    @JsonValue
    private Integer value;
    private String desc;

    @Override
    public Integer getCode() {
        return this.value;
    }

    @Override
    public String toString() {
        return this.desc;
    }
}
